<template>
  <div class="columns">
    <div class="e-column" v-for="item in column" :key="item.title">
      <div class="icon">
        <img :src="item.cover" alt />
      </div>
      <p class="title">{{ item.title }}</p>
      <div class="dian"></div>
      <div class="describe">{{ item.remark }}</div>
    </div>
  </div>
</template>
<script>
export default {
  name: "serves",
  props: {
    column: {
      type: Array,
      default() {
        return [];
      },
    },
  },
  data() {
    return {};
  },
};
</script>
<style lang="less" scoped>
.columns {
  width: 15.2rem;
  margin: 0 auto;
  display: flex;
  .e-column {
    width: 3.6rem;
    height: 5.35rem;
    box-sizing: border-box;
    padding: 0.48rem 0.5rem 0;
    background: #fff;
    margin-right: 0.25rem;
    color: #000;
    box-shadow: 1px 1px 5px 0 rgba(29, 39, 165, 0.33);
    .icon {
      width: 1.65rem;
      height: 1.26rem;
      margin: 0 auto;
      img {
        // width: 100%;
        height: 100%;
      }
    }
    .title {
      font-size: 0.3rem;
      margin: 0.43rem 0;
    }
    .dian {
      width: 0.35rem;
      height: 0.06rem;
      background: #1a72e6;
      margin: 0 auto;
      border-radius: 0.03rem;
    }
    .describe {
      font-size: 0.18rem;
      margin-top: 0.4rem;
      line-height: 0.36rem;
      text-align: left;
      word-break: break-all;
      overflow: hidden;
      text-overflow: ellipsis;
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
    }
  }
}
@media screen and (max-width: 1000px) {
  .columns {
    width: 100%;
    flex-wrap: wrap;
    padding: 0 0.35rem;
    box-sizing: border-box;
    margin: 1.1rem auto;
    justify-content: space-between;
    .e-column {
      width: 48%;
      margin-bottom: 0.24rem;
      margin-right: 0;
    }
  }
}
</style>